package network.Demo02;

import java.net.InetSocketAddress;

/**
 * @Author Miku
 * @Create 2021/5/6 15:26
 */
public class TestInetSocketAddress {
    public static void main(String[] args) {
        InetSocketAddress socketAddress = new InetSocketAddress("127.0.0.1", 8080);
        InetSocketAddress socketAddress2 = new InetSocketAddress("localhost", 8080);
        System.out.println(socketAddress);
        System.out.println(socketAddress2);
    }
}
